package com.jtuixueyuan.controller;

import com.jtuixueyuan.service.BuyActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class BuyActionController {

    @Autowired
    private BuyActionService buyActionService;

    @RequestMapping("/buytime")
    public Map<String,Object> buytime(String id){
        Map<String,Object> result =buyActionService.getBuyTimeByHouseId(id);
        return result;
    }
}
